from PySide6.QtCore import Qt
from PySide6.QtGui import QImage, QIcon
from PySide6.QtWidgets import QVBoxLayout, QFrame
from qfluentwidgets import ScrollArea, TitleLabel, ImageLabel, IconWidget
from resource import OfficeIcon


class HomeInterface(QFrame):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.setObjectName('homeInterface')
        # self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
        self.vBox = QVBoxLayout(self)
        self.vBox.setContentsMargins(10, 40, 10, 10)
        self.vBox.setSpacing(0)
        self.vBox.setAlignment(Qt.AlignmentFlag.AlignVCenter | Qt.AlignmentFlag.AlignHCenter)

        self.titleLabel = TitleLabel('办公工具', self)

        self.vBox.addWidget(self.titleLabel)
